package com.micro.edu.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Tyd
 * @date 2021/03/08 17:24
 */
@FeignClient(value = "micro-service-code",fallback = CodeFallback.class,path = "/code")
public interface CodeServiceFeignClient {

    @GetMapping("/validate/{email}/{code}")
    int validateCode(@PathVariable String email,@PathVariable String code);
}
